<?php 
if (count($staffs)){

?>
<table class="table table-bordered table-striped table-hover staff-profile">
  <caption><h4>All staffs with salary increase on <?php echo date("F Y");?></caption>
   <thead>
	    <tr>
	    	<th>Name</th>
            <th>Position</th>
            <th>Team</th>
            <th>Increase Date</th>
            <th>Comment</th>
	    </tr>
	</thead>
  <tbody>
  	<?php 
		foreach ($staffs as $key => $list){
			echo "<tr valign='top'>\n";
			echo "<td>".$list['FirstName']." ".$list['LastName']."</td>\n";
            echo "<td>".$list['Title']."</td>\n";
            echo "<td>".$list['TeamName']."</td>\n";
            echo "<td>".substr($list['IncreasedDate'],0,10)."</td>\n";
            echo "<td>".$list['Comment']."</td>\n";
			echo "</tr>\n";
		}
  	?>
  </tbody>
</table>
<?php }?>